#include "Point.hpp"

using namespace std;
using namespace CalculIntegral;
using namespace boost::numeric::ublas;

Point::Point( const VecteurBase& pt )
  : VecteurBase( pt ), Dimension( pt.size() )
{}

Point::Point( const double& val )
  : VecteurBase( scalar_vector< double >( 1, val ) ), Dimension( 1 )
{}

Point::~Point()
{}

const unsigned& Point::dimension() const
{
  return Dimension;
}

ostream& Point::affiche( ostream& os ) const
{
  VecteurBase::const_iterator it, End( end() );

  for ( it = begin(); it != End; it++ )
    os << *it << ' ';

  return os;  
}
